home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / resources / mathresource.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  55 lines

  1. #ifndef    RESOURCES_MATHRESOURCE_H
  2. #define    RESOURCES_MATHRESOURCE_H
  3. /*
  4. **    $VER: mathresource.h 1.2 (13.7.90)
  5. **    Includes Release 40.15
  6. **
  7. **    Data structure returned by OpenResource of:
  8. **    "MathIEEE.resource"
  9. **
  10. **
  11. **    (C) Copyright 1987-1993 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_NODES_H
  16. #include <exec/nodes.h>
  17. #endif
  18.  
  19. /*
  20. *    The 'Init' entries are only used if the corresponding
  21. *    bit is set in the Flags field.
  22. *
  23. *    So if you are just a 68881, you do not need the Init stuff
  24. *    just make sure you have cleared the Flags field.
  25. *
  26. *    This should allow us to add Extended Precision later.
  27. *
  28. *    For Init users, if you need to be called whenever a task
  29. *    opens this library for use, you need to change the appropriate
  30. *    entries in MathIEEELibrary.
  31. */
  32.  
  33. struct MathIEEEResource
  34. {
  35.     struct    Node    MathIEEEResource_Node;
  36.     unsigned short    MathIEEEResource_Flags;
  37.     unsigned short    *MathIEEEResource_BaseAddr; /* ptr to 881 if exists */
  38.     void    (*MathIEEEResource_DblBasInit)();
  39.     void    (*MathIEEEResource_DblTransInit)();
  40.     void    (*MathIEEEResource_SglBasInit)();
  41.     void    (*MathIEEEResource_SglTransInit)();
  42.     void    (*MathIEEEResource_ExtBasInit)();
  43.     void    (*MathIEEEResource_ExtTransInit)();
  44. };
  45.  
  46. /* definations for MathIEEEResource_FLAGS */
  47. #define    MATHIEEERESOURCEF_DBLBAS    (1<<0)
  48. #define    MATHIEEERESOURCEF_DBLTRANS    (1<<1)
  49. #define    MATHIEEERESOURCEF_SGLBAS    (1<<2)
  50. #define    MATHIEEERESOURCEF_SGLTRANS    (1<<3)
  51. #define    MATHIEEERESOURCEF_EXTBAS    (1<<4)
  52. #define    MATHIEEERESOURCEF_EXTTRANS    (1<<5)
  53.  
  54. #endif    /* RESOURCES_MATHRESOURCE_H */
  55.